//
//  MySelfViewController.m
//  CookDemo
//
//  Created by lanou3g on 15/9/4.
//  Copyright (c) 2015年 DTR. All rights reserved.
//

#import "MySelfViewController.h"
#import "MySelfTableViewCell.h"
#import "MMDrawerBarButtonItem.h"
#import "MMDrawerController.h"
#import "MMDrawerVisualState.h"
@interface MySelfViewController ()

@end

@implementation MySelfViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self initDrawer];
    // Do any additional setup after loading the view.
}

//侧滑抽屉
- (void)initDrawer {
//    UIStoryboard* mainStoryboard = [UIStoryboard storyboardWithName:@"main" bundle: nil];
//    drawerController = [[MMDrawerController alloc] initWithCenterViewController:[mainStoryboard instantiateViewControllerWithIdentifier:@"centerNav"] leftDrawerViewController:[mainStoryboard instantiateViewControllerWithIdentifier:@"menu"]];
//    
//    [drawerController setDrawerVisualStateBlock:[MMDrawerVisualState slideAndScaleVisualStateBlock]];
//    [drawerController setMaximumLeftDrawerWidth:260.0];
//    [drawerController setOpenDrawerGestureModeMask:MMOpenDrawerGestureModePanningNavigationBar];
//    [drawerController setCloseDrawerGestureModeMask:MMCloseDrawerGestureModeAll];
    
//    self.window.rootViewController = drawerController;
//    [self.view addSubview:drawerController];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return 6;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    MySelfTableViewCell *cell=[tableView dequeueReusableCellWithIdentifier:@"MySelfCell" forIndexPath:indexPath];
    
    if (indexPath.row == 0) {
//        cell.backgroundColor=[UIColor greenColor];
        cell.textLabel.text = @"我的收藏";
        
    }
    if (indexPath.row == 1) {
//        cell.backgroundColor = [UIColor yellowColor];
        cell.textLabel.text = @"清除缓存";
    }
    if (indexPath.row == 2) {
//        cell.backgroundColor = [UIColor blueColor];
        cell.textLabel.text = @"关于我们";
    }
    if (indexPath.row == 3) {
//        cell.backgroundColor = [UIColor redColor];
        cell.textLabel.text = @"用户反馈";
    }
    if (indexPath.row == 4) {
        //        cell.backgroundColor = [UIColor redColor];
        cell.textLabel.text = @"给我们好评";
    }
    if (indexPath.row == 5) {
        //        cell.backgroundColor = [UIColor redColor];
        cell.textLabel.text = @"检查更新";
    }
    return cell;
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
